<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags" %>

<table id="optimize-items" page-size='<s:property value="option.limit" />'
	pages='<s:property value="pagingItems.totalPages" />' 
	pageIndex='<s:property value="pagingItems.currentPage" />'>
	<thead>
		<tr>
			<th>序号</th>
			<th>主图</th>
			<th>标题</th>
			<th>价格</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="pagingItems.items" status='st'>
			<tr class="drow" num_iid='<s:property value="numIid"/>'>
				<td class='index'><s:property value="#st.index + 1"/></td>
				<td class='main-pic'>
					<a href='http://item.taobao.com/item.htm?id=<s:property value="numIid"/>' target="_blank">
						<img class="pic" src='<s:property value="picUrl"/>_80x80.jpg' title='<s:property value="title"/>'/>
					</a>
				</td>
				<td class="title" title='<s:property value="title"/>'>
					<div>
						<a href="#" title="点击编辑标题" class='edit'><s:property value="title"/></a>
						<div class='editor hide'>
							<div><input type='text' value='<s:property value="title"/>' /></div>
							<div class='tip' title='单个中文字符为一个字，单个英文字符、数字、空格等为半个字'>标题字数不能超过<span class='red'>30</span>个字，还可以输入<span class='left-chars red'>30</span>个字。</div>
						</div>
					</div>
				</td>
				<td>
					<div><s:property value="price"/></div>
				</td>
				<td class='op'>
					<a href="#" class='optimize'>优化</a>
				</td>
			</tr>
		</s:iterator>
	</tbody>
</table>
<script type="text/javascript" src="js/optimize-items.js"></script>